import ajax from "@/utils/ajax";

export async function insert(params: any) {
    return ajax({
        url: '/activity/insert',
        method: 'POST',
        data: params
    });
}

export async function update(params: any) {
    return ajax({
        url: '/activity/update',
        method: 'PUT',
        data: params
    });
}

export async function deleteById(params: any) {
    return ajax({
        url: `/activity/delete/${params}`,
        method: 'DELETE',
    });
}

export async function page(params: any) {
    return ajax({
        url: '/activity/page',
        method: 'POST',
        data: params
    });
}
